package com.loong.order.service.impl;

import com.loong.common.dubbo.service.AbstractService;
import com.loong.common.rest.rpc.RPCResponse;
import com.loong.order.consumer.OrderDBConsumer;
import com.loong.order.service.IOrderDBService;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2021-1-4 10:22
 */
public class IOrderDBServiceImpl extends AbstractService implements IOrderDBService {
    @Resource
    private OrderDBConsumer orderDBConsumer;
    @Override
    public RPCResponse checkTimeAndExecutor() {
        return serviceExecutor.execute(()->orderDBConsumer.checkTimeAndExecutor());
    }
}
